package com.woniu.shop.service;

import com.woniu.Result;
import com.woniu.shop.pojo.Application;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.shop.pojo.vo.AcceptApplicationVo;
import com.woniu.shop.pojo.vo.AllApplicationVo;
import com.woniu.shop.pojo.vo.ApplicationAcceptDto;
import com.woniu.shop.pojo.vo.ApplicationVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaohuang
 * @since 2022-11-16
 */
public interface IApplicationService extends IService<Application> {
    //添加
    Result<String> saveApplication(ApplicationVo applicationVo);
    //通过id查询
    ApplicationVo findById(Integer id);
    //查询所有
    List<AllApplicationVo> findAll(Integer userId);
    //修改
    Result<String> modify(ApplicationVo applicationVo);

    Result<String> oneAudit(Application application);

    Result<String> twoAudit(Application application);

    Result<AcceptApplicationVo> accept(ApplicationAcceptDto dto);
}
